package com.zhangshuo.common.rabbitmq;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * Created by Administrator on 2017/6/9 0009.
 */
//@Component
public class Receiver {

    Logger logger = LoggerFactory.getLogger(Receiver.class);


    @RabbitListener(queues = "my.test")
    public void processorMessage(Object message){
        logger.info("获取到消息:" + message.toString());
    }

}
